﻿using System;

namespace MEF_Test.Bricks.Subtitles
{
    using System.Collections.Generic;

    using MEF_Test.Subtitles;

    public class SubtitleHandler : ISubtitleHandler
    {
        private List<ISubtitleEntry> _subtitleEntries;

        /// <summary>
        /// Initializes a new instance of the <see cref="SubtitleHandler"/> class.
        /// </summary>
        public SubtitleHandler()
        {
            _subtitleEntries = new List<ISubtitleEntry>();
        }

        /// <summary>
        /// Gets or sets the subtitle entries.
        /// </summary>
        /// <value>The subtitle entries.</value>
       

        public void Append(ISubtitleEntry subtitleEntry)
        {
            _subtitleEntries.Add(subtitleEntry);
        }

        public IEnumerable<ISubtitleEntry> SubtitleEntries
        {
            get { return _subtitleEntries; }            
        }
    }
}
